﻿using Estsh.Core.Base;
using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Models;
using Estsh.Core.Repositories;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Estsh.Core.Wms.IRepositories
{
    public interface INcScrapRepository : IBaseRepository<BaseEntity>
    {
        /// <summary>
        /// 处理报废
        /// </summary>
        /// <param name="cartonInfo"></param>
        /// <param name="moveDetail"></param>
        /// <param name="moveSn"></param>
        /// <returns></returns>
        public bool DoScrap(SysStock cartonInfo, WmsMoveDetail moveDetail, WmsMoveSn? moveSn,string loginId);
        public List<WmsMoveDetail_Extend> GetFinishMoveDetailByOrderNo(string orderNo);
        //获取零件号信息
        public SysPart GetPartNOInfoByPartNo(string partNo);
        //把结果添加到接口表
        public bool InsertInterfaceByNCScrap(string orderNo);
    }
}
